package com.literature.search.file.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author: DangKong
 * @Date: 2023/3/21 00:13
 * @Description:
 */

@Data
@ApiModel("搜索参数")
public class SearchSingleDTO {

    @ApiModelProperty("搜索关键字")
    private String keyword;

    @ApiModelProperty("文档id")
    @NotNull(message = "文档id不能为空")
    private String id;

    @ApiModelProperty("文档名")
    @NotNull(message = "文档名不能为空")
    private String fileName;

    @ApiModelProperty(value = "每页显示条数",notes = "默认10条",example = "10")
    private Integer pageSize = 10;

    @ApiModelProperty(value = "当前页码",notes = "默认第一页",example = "1")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "是否来源于图片",notes = "默认来源于图片",example = "true")
    private Boolean isFromImage = true;

    @ApiModelProperty(value = "是否来源于文本",notes = "默认来源于文本",example = "true")
    private Boolean isFromText = true;

    @ApiModelProperty(value = "是否图片优先",notes = "默认为false",example = "false")
    private Boolean isImageFirst = false;

    @ApiModelProperty(value = "是否文本优先",notes = "默认为false",example = "false")
    private Boolean isTextFirst = false;



}
